<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui, viewport-fit=cover">
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>手机首页 - 77货源网</title>
    <link rel="stylesheet" href="m/css/common.css">
    <link rel="stylesheet" href="css/vant.css">
    <style>
        body {
            background: #FFF;
        }

        .headIndex {
            overflow: hidden;
            height: 3.6rem;
            position: relative;
        }

        .headIndex > div {
            width: 132%;
            height: 3.6rem;
            position: absolute;
            border-radius: 0px 0px 10rem 10rem;
            left: 50%;
            top: 0;
            overflow: hidden;
            transform: translate(-50%, 0);
        }

        .headIndex > div > div {
            background-image: url(images/indexBanner.png);
            background-size: 121%;
            background-position: center bottom;
            background-repeat: no-repeat;
            height: 3.6rem;
        }

        .my-swipe {
            width: 100%;
            display: block;
        }

        .my-swipe .bannerImage {
            display: block;
            width: 100%;
            border-radius: 0.1rem;
            height: 3rem;
        }

        .indexs {
            margin: 0 0.25rem;
            margin-top: -3.3rem;
        }

        .search {
            margin-bottom: 0.27rem;
            position: relative;
            z-index: 1;
        }

        .search input {
            background: rgba(255, 255, 255, 0.4);
            border: 0;
            height: 0.75rem;
            border-radius: 0.08rem;
            padding: 0.2rem 0.3rem;
            line-height: 0.35rem;
            font-size: 0.28rem;
            text-align: center;
        }

        .search input, .search input::-webkit-input-placeholder {
            color: #FFF;
        }

        .van-swipe__indicator {
            background: #b7b7b7;
            width: 4px;
            height: 4px;
        }

        .van-swipe__indicator--active {
            background-color: rgb(135, 207, 255);
            width: 8px;
            border-radius: 3px;
            height: 4px;
        }

        .van-swipe__indicators {
            bottom: 6px;
        }
    </style>
</head>
<body>
<div id="app" v-cloak>
    <div class="headIndex">
        <div>
            <div></div>
        </div>
    </div>
    <div class="indexs">
        <div class="search">
            <input type="text" placeholder="&#xe601; 搜索关键字" v-model="keyword" class="iconfont" @keyup.enter="search">
        </div>
        <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
            <van-swipe-item>				
                <a href="https://www.77shopw.com/index-m/detail/255.html"><img src="images/mmexport1592.jpeg" class="bannerImage" style="object-fit: fill;"></a>
            </van-swipe-item>
            <van-swipe-item>				
                <a href="https://www.77shopw.com/index-m/detail/93.html"><img src="images/lunbo1.jpeg" class="bannerImage" style="object-fit: fill;"></a>	
            </van-swipe-item>
            <van-swipe-item>				
                <a href="https://www.77shopw.com/index-m/detail/166.html"><img src="images/mmexport1599.jpeg" class="bannerImage" style="object-fit: fill;"></a>	
            </van-swipe-item>
        </van-swipe>
        <van-swipe class="my-swipe" :loop="false" :autoplay="0">
                            <van-swipe-item>
                    <div class="imageNav clearfix">
                                                <a href="./index-m/shoes.html">
                            <img src="images/01b955d6655ae03fdf32f0eb4b752a.png">
                            品牌潮鞋                        </a>
                                                <a href="/index-m/trousers.html">
                            <img src="images/04124494ace310bb747128c44a7e6f.png">
                            潮牌服饰                        </a>
                                                <a href="/index-m/bracelet.html">
                            <img src="images/da3e3abbfd777d49dcba856013a9f3.png">
                            名牌手表                        </a>
                                                <a href="/index-m/bag.html">
                            <img src="images/aa0b1ba4bac390b93801190b36dc06.png">
                            包包皮具                        </a>
                                                <a href="/index-m/lipstick.html">
                            <img src="images/1bef6471eeb1a88d3b340b7c4331bb.png">
                            饰品化妆品                        </a>
                                            </div>
                </van-swipe-item>
                            <van-swipe-item>
                    <div class="imageNav clearfix">
                                                <a href="/index-m/childrenswear.html">
                            <img src="images/aae6a1c57193ee2a2cc0893680aa71.png">
                            童装女装                        </a>
                                                <a href="/index-m/erji.html">
                            <img src="images/3b69530e63ecf723498699b297a52d.png">
                            耳机数码                        </a>
                                                <a href="/index-m/weishang.html">
                            <img src="images/282fa3d2fe1bafbe3b342767dbc0af.png">
                            如何做微商                        </a>
                                            </div>
                </van-swipe-item>
                    </van-swipe>
        <div style="margin:0px -0.25rem;background:#F9F9F9;height:0.15rem;width:calc(100% + 0.5rem);"></div>
        
        <template>
            <ul class="mTopGroup overflowx">
                                <li style="width:1.1rem;"><a href="https://www.77shopw.com/index-m/detail/119.html" target="_blank">广州站西钟表城名表批发工厂</a></li>
                                <li style="width:1.1rem;"><a href="https://www.77shopw.com/index-m/detail/296.html" target="_blank">奢侈品代工厂</a></li>
                                <li style="width:1.1rem;"><a href="https://www.77shopw.com/index-m/detail/283.html" target="_blank">莆田一手货原直销</a></li>
                                <li style="width:1.1rem;"><a href="https://www.77shopw.com/index-m/detail/250.html" target="_blank">莆田本地潮鞋</a></li>
                                <li style="width:1.1rem;"><a href="http://www.77shopw.com/index-m/detail/240.html" target="_blank">乔丹耐克万斯</a></li>
                                <li style="width:1.1rem;"><a href="https://www.77shopw.com/index-m/detail/272.html" target="_blank">手表源头批发</a></li>
                                <li style="width:1.5rem;"><a class="ani" @click="vant.Dialog({ message: '请使用电脑版77货源网进行在线置顶广告位' });">我也想上这里</a></li>
            </ul>
            <div style="margin:0px -0.25rem;background:#F9F9F9;height:0.15rem;width:calc(100% + 0.5rem);"></div>
        </template>
        
        <div v-if="indexAd.length>0">
            <van-swipe class="my-swipe" :loop="false" :autoplay="0">
                <van-swipe-item v-for="(item,index) in indexAd" :key="index">
                    <ul class="clearfix indexad">
        				<li v-for="(prop,i) in item" :key="i" v-if="prop.mobileHref && prop.mobileImage">
        					<a target="_blank" :href="prop.mobileHref">
        						<img :src="prop.mobileImage"> 
        					</a>
        				</li>
        			</ul>
                </van-swipe-item>
            </van-swipe>
			<div style="margin:0px -0.25rem;background:#F9F9F9;height:0.15rem;width:calc(100% + 0.5rem);"></div>
		</div>
        
		<template v-if="list==null">
			<div style="padding:30px;text-align:center;">
				<van-loading color="#1989fa"></van-loading>
			</div>
		</template>
		<template v-else>
			<section class="m-no" v-if="list.length==0">
	            <div class="u-img"></div>
	            <div class="u-spec">暂时没有找到货源</div>
	        </section>
	        <template v-else>
	        	<van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
		            <ul class="article_list">
		                <li v-for="(item,index) in list" :key="index">
		                    <a :href="'/index-m/detail/'+item.id+'.html'" :class="item.cover.length<=1?'disbox':''">
			                    <div class="info" :class="item.cover.length<=1?'disflex':''">
			                        <h3 class="Line2" :class="(item.id=='93' || item.id=='166' || item.id=='255')?'colorChange':''"><i v-if="item.is_rec==1">置顶</i>
                                        <img src="images/rztg.gif" v-if="item.is_belive" style="display: inline-block;margin-right: 0.2rem;vertical-align: middle;margin-top: -2px;height: 0.28rem;">
                                        {{item.title}}</h3>
			                        <p class="ell">
			                            {{item.description}}
			                        </p>
			                        <div class="time"> <span v-html="$$.getDateDiff(item.create_time)"></span>前发布,已有{{item.views}}人看</div>
			                    </div>
			                    <div class="imageDiv clearfix" v-if="item.cover.length>1">
			                        <img :src="prop" class="image" v-for="(prop,i) in item.cover" :key="index">
			                    </div>
		                    	<img :src="item.cover[0]" class="image" v-else-if="item.cover.length==1">
			                </a>
		                </li>
		            </ul>
	            </van-list>
	        </template>
		</template>
		
        <div style="display:none;">
        	                <a href="/index-m/detail/129.html">【销量n1】莆田鞋子 潮服 手表 招实力代理，有量有价【吊打同行】</a>
                            <a href="/index-m/detail/17.html">江苏潮牌一件代发质量杠杠的  批发 批发网店代理一件代发免费代理</a>
                            <a href="/index-m/detail/131.html">莆田总仓、多家厂家联合供货、原厂实价、全场包邮、一件代发、免招代理</a>
                            <a href="/index-m/detail/75.html">专注 高端公司级纯原真标 过毒（可扫码）莆田鞋一件代发 免费代理</a>
                            <a href="/index-m/detail/175.html">莆田aj乔丹ljr（刘家瑞）等公司纯原get毒各个版本是什么意思</a>
                            <a href="/index-m/detail/246.html">nike adidas 乔丹莆田鞋公司级纯原版本集合支持货到付款五年老店值得信赖</a>
                            <a href="/index-m/detail/349.html">【风云潮牌】圈内老牌供应商 一手货源 招实力代理</a>
                            <a href="/index-m/detail/154.html">原单手表 免费代理 一手货源 秒出单秒发货</a>
                            <a href="/index-m/detail/116.html">莆田工厂直销，一双货源，免费招收代理，一件代发，可货到付款</a>
                            <a href="/index-m/detail/224.html">abc广州工厂货源 手表包包衣服 一件也给批发价</a>
                    </div>	
    </div>
    <van-tabbar v-model="navIndex" :placeholder="true" active-color="rgb(3, 134, 255)">
        <van-tabbar-item icon="wap-home-o" url="/">首页</van-tabbar-item>
        <van-tabbar-item icon="description" url="/index-m/zixun.html">资讯</van-tabbar-item>
        <van-tabbar-item icon="user-circle-o" url="/index-m/user/my.html">我的</van-tabbar-item>
    </van-tabbar>
</div>
<script src="js/jquery-3.4.1.min.js" type="text/javascript"></script>
<script src="js/vue.min.js" type="text/javascript"></script>
<script src="js/vant.min.js" type="text/javascript"></script>
<script src="js/common.js" type="text/javascript"></script>
<div style="display:none;">
    <script type="text/javascript" src="https://v1.cnzz.com/z_stat.php?id=1279117397&web_id=1279117397"></script>
    
</div>
<script type="text/javascript">
    var app = new Vue({
        el: '#app',
        data: {
            navIndex: 0,
            loading: false,
    		finished: false,
    		page:1,
    		list:null,
    		keyword:"",
    		indexAd:[],
        },
        methods: {
			getIndexAd(){
				var _this = this;
				$.getScript("/static/index-m/js/indexad.js",function(res){
					_this.indexAd = $$.chunk(indexAd,12);
				});
			},
        	search(){
        		var _this = this;
        		_this.page = 1;
        		_this.loading = false;
        		_this.finished = false;
        		_this.list = null;
        		_this.onLoad();
        	},
        	onLoad() {
        		var _this = this;
        		_this.loading = true;
        		$$.ajax({
                    url: "/",
                    data:{
                    	page:_this.page,
                    	keyword:_this.keyword,
                    },
                    method: "post",
                    success: function (res) {
                    	_this.loading = false;
                    	
                    	if(_this.page==1){
                    		_this.list = res.data.list;
                    	}else{
                    		_this.list = _this.list.concat(res.data.list);
                    	}
                        _this.page++;
                        
                        if(!res.data.hasMore){
                        	_this.finished = true;
                        }else{
                        	_this.finished = false;
                        }
                    }
                });
        	},
        },
        mounted: function () {
			this.onLoad();
			this.getIndexAd();
        }
    });
</script>
</body>
</html>
